{
    class MapIntro extends ui.Match.MapIntroUI {
        constructor () {
            super();
            
            this.init();
        }

        init () {
            this.left = 125;
            this.top = 85;

            this.titleBG.index = CUR_SELECTED_MODE_BG;
            this.mapIntroPanel.vScrollBarSkin = "";
        }

        update (data) {
            this.mapName.text = data.name;
            this.mapIntro.text = data.desc;
            this.award.text = data.count;
            this.counter.text = data.time;
            this.collectProgress.scrollRect = {x : 0, y : 0, width : this.collectProgress.width * data.produce / data.total, height : this.collectProgress.height};
            this.mapIntro.text = data.desc;

            if(!data.firstWin){
                this.awardWrap.visible = true;
            }
            this.collectProgress.visible = true;
        }

        resize (width, height, rate) {
            this.scale(rate, rate);
        }
    }

    Sail.class(MapIntro, "Com.Match.MapIntro");
}